package com.example.netty.dao;

import com.example.netty.vo.User;
import org.springframework.stereotype.Service;

/**
 * @author zclever <304078606@qq.com>
 * @date 2021-03-03
 */
@Service
public class UserDao {

    /**
     * 从数据库查询用户
     * @param id
     * @return
     */
    public User get(int id){
        User user = new User();
        user.setId(id);
        user.setName("用户"+id);
        return user;
    }
}
